#include <linux/memblock.h>
#include <linux/bug.h>

static void memblock_remove_region(struct memblock_type *type, unsigned long r)
{
    type->total_size -= type->regions[r].size;
    memmove(&type->regions[r], &type->regions[r + 1],
            (type->cnt - (r + 1)) * sizeof(type->regions[r]));
    type->cnt--;

    /* Special case for empty arrays */
    if (type->cnt == 0)
    {
        WARN_ON(type->total_size != 0);
        type->regions[0].base = 0;
        type->regions[0].size = 0;
        type->regions[0].flags = 0;
    }
}

static int memblock_remove_range(struct memblock_type *type,
                                 phys_addr_t base, phys_addr_t size)
{
    return 0;
}
